import pytest
import yaml
import os
from utils.handle_extract import ExtractUtil
import time
from utils.handle_dingding import send_ding



if __name__ == '__main__':
    pytest.main()
    time.sleep(2)
    # -o  输出  根据临时文件构建输出。。
    os.system("allure generate ./temp -o ./reports --clean")
    # with open(r"C:\Users\27189\Desktop\工作\sem\testcases\test\002.yaml",mode="r",encoding='GBK' ) as file:
    #     yaml_data = yaml.load(file, Loader=yaml.FullLoader)
    #     new_case = ExtractUtil().hot_load_replace(yaml.dump(yaml_data))
    #     print(new_case)
    # time.sleep(2)
    # os.system("allure open ./reports -p 8210")
    # os.system('allure open ./reports')
    send_ding().send_ding()
